github.com/klauspost/compress/gzip.Reader.buf (field)
27 uses
github.com/klauspost/compress/gzip (current package)
gunzip.go#L82: buf [512]byte
gunzip.go#L154: if i >= len(z.buf) {
gunzip.go#L157: z.buf[i], err = z.r.ReadByte()
gunzip.go#L161: if z.buf[i] > 0x7f {
gunzip.go#L164: if z.buf[i] == 0 {
gunzip.go#L166: z.digest = crc32.Update(z.digest, crc32.IEEETable, z.buf[:i+1])
gunzip.go#L171: for _, v := range z.buf[:i] {
gunzip.go#L176: return string(z.buf[:i]), nil
gunzip.go#L184: if _, err = io.ReadFull(z.r, z.buf[:10]); err != nil {
gunzip.go#L194: if z.buf[0] != gzipID1 || z.buf[1] != gzipID2 || z.buf[2] != gzipDeflate {
gunzip.go#L197: flg := z.buf[3]
gunzip.go#L198: hdr.ModTime = time.Unix(int64(le.Uint32(z.buf[4:8])), 0)
gunzip.go#L200: hdr.OS = z.buf[9]
gunzip.go#L201: z.digest = crc32.ChecksumIEEE(z.buf[:10])
gunzip.go#L204: if _, err = io.ReadFull(z.r, z.buf[:2]); err != nil {
gunzip.go#L207: z.digest = crc32.Update(z.digest, crc32.IEEETable, z.buf[:2])
gunzip.go#L208: data := make([]byte, le.Uint16(z.buf[:2]))
gunzip.go#L232: if _, err = io.ReadFull(z.r, z.buf[:2]); err != nil {
gunzip.go#L235: digest := le.Uint16(z.buf[:2])
gunzip.go#L271: if _, err := io.ReadFull(z.r, z.buf[:8]); err != nil {
gunzip.go#L275: digest := le.Uint32(z.buf[:4])
gunzip.go#L276: size := le.Uint32(z.buf[4:8])
gunzip.go#L345: if _, err := io.ReadFull(z.r, z.buf[0:8]); err != nil {
gunzip.go#L353: digest := le.Uint32(z.buf[:4])
gunzip.go#L354: size := le.Uint32(z.buf[4:8])
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |